<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
  <head>
    <title>UpdateVisitor</title>
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="css/bootstrap-theme.min.css">
    <script type="text/javascript" src="js/bootstrap.min.js"></script>
    <link rel="stylesheet" type="text/css" href="css/estilo.css">
    <script type="text/javascript" src="js/javascript.js"></script>

  </head>
 
  <body>

    <div class="cabecera">
      <h1 align="center">FESTIVAL REGISTRATION SYSTEM</h1>
    </div>
    

    <div id="login-overlay" class="modal-dialog">
      <div class="modal-content">
          <div class="modal-header">
              <h4 class="modal-title" id="myModalLabel">Update your information</h4>
          </div>
          <div class="modal-body">
              
              <form id="loginForm" name="myForm" method="POST" action="updatepeople.htm" onSubmit="return checkMe()">
                    <div class="form-group">
                         <label for="firstname" class="control-label">First name</label>
                          <input type="text" class="form-control" id="name1" name="name1" value="<%= (String)request.getSession().getAttribute("firstNamePeople") %>" required="" maxlength="30" placeholder="Please enter your first name">
                          <span class="help-block"></span>
                    </div>

                    <div class="form-group">
                         <label for="lastname" class="control-label">Last name</label>
                          <input type="text" class="form-control" id="name2" name="name2" value="<%= (String)request.getSession().getAttribute("lastNamePeople") %>" required="" maxlength="30" placeholder="Please enter your last name">
                          <span class="help-block"></span>
                    </div>


                    <div class="form-group">
                         <label for="dni" class="control-label">DNI</label>
                          <input type="text" class="form-control" id="dni" name="dni" value="<%= (String)request.getSession().getAttribute("dniPeople") %>" required="" maxlength="12" title="Please enter 8 numbers and a letter" placeholder="00.000.000-X" pattern="[0-9]{2}.[0-9]{3}.[0-9]{3}-[A-Z]{1}">
                          <span class="help-block"></span>
                    </div>
                  

                      <div class="form-group">
                         <label for="email" class="control-label">Email</label>
                          <input type="email" class="form-control" id="email" name="email" value="<%= (String)request.getSession().getAttribute("emailPeople") %>" required="" pattern=".{3,200}" placeholder="example@domain.com" title="Please enter 3 characters minimun">
                          <span class="help-block"></span>
                      </div>


                      <div class="form-group">
                         <label for="phone" class="control-label">Phone No</label>
                          <input type="text" class="form-control" id="phone" name="phone" value="<%= (String)request.getSession().getAttribute("numberPeople") %>" required="" pattern=".{9,20}" placeholder="Please enter your phone number" onkeypress="return justNumbers(event);" title="Please enter 10 characters minimun">
                          <span class="help-block"></span>
                      </div>

                      <div class="form-group">
                         <label for="address" class="control-label">Address</label>
                          <input type="text" class="form-control" id="address" name="address" value="<%= (String)request.getSession().getAttribute("addressPeople") %>" maxlenght="30" placeholder="Please enter your address">
                          <span class="help-block"></span>
                      </div>

                        <div id="loginErrorMsg" class="alert alert-error hide">Wrong username og password</div>
                        <button type="submit" class="btn btn-success btn-block">Update</button>
                              
                </form>
          </div>
      </div>
    </div>

    <div class="imgdiv">
      <img class="img">
    </div>

  </body>
</html>